<html ng-app="app">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="../../build/common/base.css" rel="stylesheet">
	<script type="text/javascript" src="../../build/common/base.js"></script>
	<script type="text/javascript" src="../../build/common/ngEdit.js"></script>
	<script type="text/javascript">

		var app = angular.module('app', ['baseDirective']);
		app.controller("ctrl", [ '$scope', 'baseService','ArrayToolService', function($scope, baseService,ArrayTool) {
			$scope.ArrayTool=ArrayTool;
			
			$scope.addRow=function(classVar){
				$scope.data[classVar +"List"].push({});
			}
			
			$scope.$root.$on('afterSaveEvent', function(event,data){
				if(parent.reload){
					parent.reload();
				}
				if(data.r){
					location.reload();
				}else{
					$.Dialog.close(window);	
				}
			});
		}]);
	</script>
</head>
<body class="panel success" ng-controller="ctrl">
	<div class="panel-heading">
		<button  class="btn btn-primary fa-save" ng-model="data" ab-save="/sys/nbJgk/save">保存</button>
		<button class="btn btn-primary fa-close" onclick="javascript:$.Dialog.close(window);">关闭</button>
	</div>
	<form name="form" method="post" ab-load="/sys/nbJgk/get?id={id}" ng-model="data">
		<table class="form-table">
			<tr>								
				<th>三级名称:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.sjmc"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>分类:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.fl"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>进口价格:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.jkjg"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>国产价格:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.gcjg"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>国家定标价:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.gjdbj"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>历史成交平均价:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.lscjpjj"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>市场调查价:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.scdcj"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>适合产品:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.shcp"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
		</table>
		
	</form>
</body>
</html>